<template>
    <div>
        <div class="sign">
    		<div class="signItem"  :style="cumulateDays.includes(item.id) ? 'border: #C1E3FF 1px solid;' : 'border: rgba(45, 45, 45, 1) 1px solid;'" v-for="(item, i) in list" :key="i" >
    			<div class="day" :class="{ active: i == index }">{{ item.Day }}</div>
    			<div class="money">
    				<div class="icon" :class="{ activeFont: i == index }">
						<img style="width: 19px;height: 19px;" v-if="cumulateDays.includes(item.id)" src="../static/img/bi.png"/>
    					<img  v-else src="../static/img/Icon.png" mode="" />
    				</div>
    				<div class="name" :style="cumulateDays.includes(item.id)?'color:#C1E3FF':''" :class="{ activeFont: i == index }">{{ item.num }}</div>
    			</div>
    		</div>
    	</div>
    </div>
</template>

<script>
export default {
    props: {
        cumulateDays: {
            type: Array,
            default: () => []
        }
    },
    data() {
        return {
            index: 0,
            list: [
                { Day: 'Day 1', num: '10', id: 1 },
                { Day: 'Day 2', num: '15', id: 2 },
                { Day: 'Day 3', num: '20', id: 3 },
                { Day: 'Day 4', num: '25', id: 4 },
                { Day: 'Day 5', num: '30', id: 5 },
                { Day: 'Day 6', num: '35', id: 6 },
                { Day: 'Day 7', num: '40', id: 7 },
                { Day: 'Day 8', num: '45', id: 8 },
                { Day: 'Day 9', num: '50', id: 9 },
                { Day: 'Day 10', num: '55', id: 10 }
            ]
        }
    }
}
</script>

<style lang="scss" scoped>
.sign{
		width: 100%;
		display: flex;
		flex-wrap: wrap;
		justify-content: flex-start;
		.active{
			color: #fff;
		}
		.activeFont{
			color: #C1E3FF;
		}
		.activeback{
			background-color: #C1E3FF;
		}
		.activeborder{
			border: #C1E3FF 1px solid;
		}
		.signItem{
			width: calc(23% - 2px);
			height: 74px;
			background: rgba(45, 45, 45, 1);
			border-radius: 10px;
			margin-left:2%;
			margin-top: 6px;
			color: rgba(189, 189, 189, 1);
			.day{
				width: 100%;
				height: 38px;
				line-height: 38px;
				text-align: center;
				font-family: Inter;
				font-size: 15px;
				font-weight: 600;
			}
			.money{
				width: 100%;
				height: 20px;
				display: flex;
				justify-content: center;
				align-items: center;
				.icon{
					width: 20px;
					height: 20px;
					background: #BDBDBD;
					border-radius: 10px;
					display: flex;
					justify-content: center;
					align-items: center;
					image{
						width: 14px;
						height: 14px;
					}
				}
				.name{
					font-family: Inter;
					font-size: 13px;
					font-weight: 700;
					text-align: left;
					margin-left: 5px;
				}
			}
		}
	}
</style>


<style lang="scss" scoped>

</style>